package config

type System struct {
	Env           string `mapstructure:"env" json:"env" yaml:"env"`                                  // 环境值
	Addr          int    `mapstructure:"addr" json:"addr" yaml:"addr"`                               // 端口值
	DbType        string `mapstructure:"db-type" json:"db-type" yaml:"db-type"`                      // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql
	OssType       string `mapstructure:"oss-type" json:"oss-type" yaml:"oss-type"`                   // Oss类型
	UseMultipoint bool   `mapstructure:"use-multipoint" json:"use-multipoint" yaml:"use-multipoint"` // 多点登录拦截
	UseRedis      bool   `mapstructure:"use-redis" json:"use-redis" yaml:"use-redis"`                // 使用redis
	LimitCountIP  int    `mapstructure:"iplimit-count" json:"iplimit-count" yaml:"iplimit-count"`
	LimitTimeIP   int    `mapstructure:"iplimit-time" json:"iplimit-time" yaml:"iplimit-time"`
	RouterPrefix  string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"`
	JpushAppKey   string  `mapstructure:"jpush_app_key" json:"jpush_app_key" yaml:"jpush_app_key"`  //极光推送APP_KEY
	JpushMasterSecret string `mapstructure:"jpush_master_secret" json:"jpush_master_secret" yaml:"jpush_master_secret"`  //极光推送APP_KEY
	ApiKey        string  `mapstructure:"api_key" json:"api_key" yaml:"api_key"`  //接口校验key
	GanKaoAppID   string  `mapstructure:"gankao_app_id" json:"gankao_app_id" yaml:"gankao_app_id"`  //赶考appId
	GanKaoSecret   string  `mapstructure:"gankao_secret" json:"gankao_secret" yaml:"gankao_secret"`  //赶考密钥
}
